package com.qianya.system.face.web.patient.model;

import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qianya.model.common.BaseEntity;
import com.qianya.util.annotation.ParamDict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 患者档案
 * </p>
 *
 * @author lhl
 * @since 2020-07-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PatientFileInfo对象", description="患者档案")
public class PatientFileInfo implements Serializable {

    private static final long serialVersionUID = -379071497707832692L;
    @ApiModelProperty(value = "档案编号")
    @TableId(value = "file_id", type = IdType.UUID)
    private String fileId;

    @ApiModelProperty(value = "患者姓名")
    private String filePatientName;

    @ApiModelProperty(value = "患者性别(1男0女)")
    private Integer filePatientGender;

    @ApiModelProperty(value = "患者年龄")
    private Integer filePatientAge;

    @ApiModelProperty(value = "患者现住址")
    private String filePatientAddress;

    @ApiModelProperty(value = "患者头像")
    private String filePatientIcon;

    @ApiModelProperty(value = "患者电话号码")
    private String filePatientTel;

    @ApiModelProperty(value = "患者身份证号码")
    private String filePatientIdNum;

    @ApiModelProperty(value = "患者居住地")
    private String filePatientResidence;

    @ApiModelProperty(value = "患者诊断")
    private String filePatientDiagnosis;

    @ApiModelProperty(value = "患者紧急联系人姓名")
    private String fileContactName;

    @ApiModelProperty(value = "患者紧急联系人电话")
    private String fileContactTel;

    @ApiModelProperty(value = "患者紧急联系人住址")
    private String fileContactAddress;

    @ApiModelProperty(value = "his住院号")
    private String fileHospitalNum;

    @ApiModelProperty(value = "主管医生")
    private String fileCompetentDoctor;

    @ApiModelProperty(value = "主管护士")
    private String fileCompetentNurse;

    @ApiModelProperty(value = "入院日期")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date fileAdmissionDate;

    @ApiModelProperty(value = "出院日期")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date fileDischargeDate;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date fileUpdateTime;

    @ApiModelProperty(value = "更新人")
    @ParamDict("u_username")
    private String fileUpdateId;

    @ApiModelProperty(value = "最近医嘱")
    private String fileDoctorAdvice;

    @ApiModelProperty(value = "所属病区")
    @ParamDict("pa_name")
    private String fileWard;

    @ApiModelProperty(value = "所属院区")
    @ParamDict("pa_name")
    private String fileCourtyard;

    @ApiModelProperty(value = "所属科室")
    @ParamDict("pa_name")
    private String fileOffice;

    @ApiModelProperty(value = "人脸识别特征")

    private byte[] fileFaceFeature;

    @ApiModelProperty(value = "二维码")
    private String  fileQrcode;

    @TableField(exist = false)
    private Float similar;
    @TableField(exist = false)
    private String bloodOxygen;
    @TableField(exist = false)
    private String heartRate;

}
